package com.mmt.www.head.deliver;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(value = "/deliver")
@Controller
public class DeliverControllerImpl implements DeliverController{

	Logger log = Logger.getLogger(this.getClass());
	
	@Resource(name = "DeliverService")
	DeliverService ds;	
	
	@RequestMapping(value = "/list")
	@Override
	public String deliverList(Model model, DeliverVO dVo, HttpSession session) {
		
		log.debug("RequestMapping : /deliver/list");		
		
		model.addAttribute("deliverList", ds.deliverListService(model, dVo, session));
		
		log.debug("viewPage 이동!");
		return "head/deliver/deliver_list";
	}
}
